package com.nut.gen;

import com.nut.entity.Activity;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class TemplateFileConfig {

    //相对的子路径
    private String subPackage;

    //模版文件名称
    private String templateName;

    //生成文件名后缀
    private String targetNameSuffix;

    //是否为java路径  如果是 文件放在src/main/java下  否则放在 resources下
    private boolean javaPath;

    public static void main(String[] args) {
        Class<Activity> clazz = Activity.class;
        String simpleName = clazz.getSimpleName();
        String name = clazz.getName();
        System.out.println(simpleName);
        System.out.println(name);
        String dd = Character.toLowerCase(simpleName.charAt(0)) + simpleName.substring(1);
        System.out.println(dd);
    }
}
